class Solution {
public:
    int countKeyChanges(string s) {
        int ret=0;
        for(int i=1;i<s.size();i++)
        {
            cout<<toupper(s[i-1])<<' '<<toupper(s[i])<<endl;
            if((char)toupper(s[i-1])!=(char)toupper(s[i]))
            {
                ret++;
            }
        }
        return ret;
    }
};
